<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
| File and Directory Modes
|--------------------------------------------------------------------------
|
| These prefs are used when checking and setting modes when working
| with the file system.  The defaults are fine on servers with proper
| security, but you may wish (or even need) to change the values in
| certain environments (Apache running a separate process for each
| user, PHP under CGI with Apache suEXEC, etc.).  Octal values should
| always be used to set the mode correctly.
|
*/
define('FILE_READ_MODE', 0644);
define('FILE_WRITE_MODE', 0666);
define('DIR_READ_MODE', 0755);
define('DIR_WRITE_MODE', 0777);

/*
|--------------------------------------------------------------------------
| Image Size Dimensions
|--------------------------------------------------------------------------
|
| These are the dimensions of the images when we upload and resize
|
*/

define('THUMB_W'		, 120);
define('THUMB_H'		, 58);
define('LARGE_W'		, 800);
define('LARGE_H'		, 800);
define('MEDIUM_W'		, 300);
define('MEDIUM_H'		, 300);
define('MAX_UPLOAD_SIZE'		, (1024*5));//5 MB
define('MAX_UPLOAD_SIZE_TEXT'	, (5));//5 MB


/*
|--------------------------------------------------------------------------
| File Stream Modes
|--------------------------------------------------------------------------
|
| These modes are used when working with fopen()/popen()
|
*/

define('FOPEN_READ'								, 'rb');
define('FOPEN_READ_WRITE'						, 'r+b');
define('FOPEN_WRITE_CREATE_DESTRUCTIVE'			, 'wb'); // truncates existing file data, use with care
define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE'	, 'w+b'); // truncates existing file data, use with care
define('FOPEN_WRITE_CREATE'						, 'ab');
define('FOPEN_READ_WRITE_CREATE'				, 'a+b');
define('FOPEN_WRITE_CREATE_STRICT'				, 'xb');
define('FOPEN_READ_WRITE_CREATE_STRICT'			, 'x+b');

/*
|--------------------------------------------------------------------------
| Default CRM Info
|--------------------------------------------------------------------------
|
| These info is availabe throughtout the system
|
*/
define('OS_CRM_PAGE_TITLE', 				'SerialsLink - promoting indian content worldwide');
define('OS_CRM_TITLE', 							'Serials Link');
define('OS_CRM_DESCP', 							'CRM, Serialslink.com is a Venture of Educational Facilitation Services Private Limited (EFSPL), EFSPL in an IBH group company.
                                      International Book House Pvt. Ltd. popularly known as IBH established in 1941 is a Publishing, 
                                      Book Distribution &amp; Subscription Management Company ');
define('OS_CRM_KEYWORDS', 						'CRM, Solution, Online System, Library Management, Journals');
define('OS_CRM_TEL', 							'+91 22 66 24 22 22');
define('OS_CRM_META_ROBOTS', 					'noodp, noindex, nofollow');
define('OS_CRM_DEBUG',                TRUE);
define('OS_CRM_DEFAULT_VAL',          '-');
define('OS_CRM_SITEADMIN',            'siteadmin');

/*
|--------------------------------------------------------------------------
| Default CRM Images
|--------------------------------------------------------------------------
|
| These info is availabe throughtout the system
|
*/

define('BOOKS_IMG', 							'images/media/books_img/');
define('BOOKS_PDF', 							'images/media/books_pdf/');
define('BOOKS_OTHER', 							'images/media/books_other/');

define('MEDIA_ARTICLES', 							'images/media/articles/');
define('MEDIA_JOURNALS', 							'images/media/journals/');

/*images dimensions*/
/*very small*/
define('BOOKS_IMG_VS_W', 90);
define('BOOKS_IMG_VS_H', 120);
/*small*/
define('BOOKS_IMG_S_W', 107);
define('BOOKS_IMG_S_H', 140);
/*medium*/
define('BOOKS_IMG_M_W', 250);
define('BOOKS_IMG_M_H', 307);
/*large*/
define('BOOKS_IMG_L_W', 500);
define('BOOKS_IMG_L_H', 650);

/*
|--------------------------------------------------------------------------
| Default Settings on DB and CRM
|--------------------------------------------------------------------------
|
| These info is availabe throughtout the system
|
*/
define('LIST_NO_DATA_MSG',            'Sorry, no data found in the system');
define('ADMIN_LANGUAGE',            'english');
define('EXCEPTION_HANDLING',        FALSE);/*file error handling*/
define('EXCEPTION_DB_HANDLING',     FALSE);/*db error handling*/
define('DB_QUERY_LOG',              TRUE);
define('TBL_DB_QUERY_LOG',          'os_db_log');
define('TBL_REN_PAGE_LOG',          'os_render_page_log');
/*DB errors info*/
define('DB_ERRORS_EMAIL',           'osdevcon@gmail.com');
define('DB_ERROR_SUBJECT',          'DB Error - OS CRM - Serials Link');
define('DB_DATE_FORMAT',            'Y-m-d H:i:s');

/*SMTP settings*/
define('SMTP_SEND_MAIL',            TRUE);
define('SMTP_BCC',                  TRUE);
define('SMTP_REPLY_TO',             'info@serialslink.com');
define('SMTP_PORT',                 '25');
define('SMTP_HOST',                 'info@serialslink.com');
define('SMTP_ADMIN_NAME',           'osdevcon@gmail.com');
define('SMTP_ADMIN_EMAIL',          'osdevcon@gmail.com');
define('OS_CRM_BCC_EMAIL',          'serials.links@gmail.com');
define('OS_CRM_FROM_NAME',          'Serials Link');
define('OS_CRM_FROM_EMAIL',         'noreply@serialslink.com');
define('OS_CRM_ADMIN_EMAIL', 				'superadmin@ibh.com');

/*
|--------------------------------------------------------------------------
| Table names CRM
|--------------------------------------------------------------------------
|
| These info is availabe throughtout the system
|
*/
define('TBL_USERS',             'os_users');
define('TBL_USERS_GRP',         'os_users_grp');
define('TBL_ARTICLES',          'os_articles');
define('TBL_CATEGORY',          'os_category');
define('TBL_EDITOR',            'os_editor');
define('TBL_JOURNALS',          'os_journals');
define('TBL_MEDIA',             'os_media');
define('TBL_PUB',               'os_pub');
define('TBL_JOR_MAP_CAT',        'os_journals_cat');
define('TBL_JOR_MAP_EDITOR',     'os_journals_editor');
define('TBL_JOR_MAP_PUB',        'os_journals_pub');
define('TBL_VOLUME',             'os_volume');
define('TBL_CURRENCY',             'os_currency');
define('TBL_MEMBERS',              'os_mem');
define('TBL_MEMBERS_INV',          'os_mem_inv');
define('TBL_MEMBERS_ADM',          'os_mem_adm');
define('TBL_MEMBERS_TECH',         'os_mem_tech');
define('TBL_MEMBERS_RIGHTS',         'os_mem_rights');
define('TBL_MEMBERS_FAV',         'os_mem_fav');
define('TBL_MEMBERS_ALERTS',         'os_mem_alerts');
define('TBL_BK_MODULES',         'os_bk_modules');
define('TBL_DB_EMAIL_LOG',         'os_bk_email_log');
define('TBL_STATS_MOST_RD',         'os_stats_most_read');
define('TBL_STATS_MOST_RD_PUB',     'os_stats_most_read_pub');
define('TBL_STATS_MOST_VIS_PUB',    'os_stats_most_vis_pub');
define('TBL_CONTACT_US',               'os_contact');
define('TBL_ORDER_USR',               'os_ord_usr');
define('TBL_MEM_DWL',               'os_mem_dwl');


//END of File
?>